//vuex创建大仓库
//vuex:集中式管理状态仓库
//state|mutations|actions|getters|modules|plugins
//vuex缺点:不能持久化存储数据
import Vuex from 'vuex';
import Vue from 'vue';
//安装插件
Vue.use(Vuex);
//引入小仓库
import home from '@/store/modules/home.js'
import category from '@/store/modules/category.js'
import shopcart from '@/store/modules/shopcart.js'
import center from '@/store/modules/center.js'
//对外暴露大仓库

export default new Vuex.Store({
	modules:{
		home,
		category,
		shopcart,
		center
	}
})